gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 7 Aug 2001 20:28:44 +0000 (20:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 7 Aug 2001 20:28:44 +0000 (20:28 +0000)
functions in order to make mouse operation work again in the
color wheel. (#58604)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkhsv.c

index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index ff8ade769ea2abdceda40e0f71b1b310f99dee1d..b8d06336e63d2b24906ad37fed6b5d4167c1a401 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
+
+       * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
+       functions in order to make mouse operation work again in the
+       color wheel. (#58604)
+
 2001-08-07  James Henstridge  <james@daa.com.au>
 
        * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
index a7e5ae6fd7d094c77114fa421687fc9e28453f8d..a30d9fa068e58480a0f8d4e321e06bb8524998cb 100644 (file)
@@ -87,6 +87,8 @@ enum {
 static void gtk_hsv_class_init     (GtkHSVClass    *class);
 static void gtk_hsv_init           (GtkHSV         *hsv);
 static void gtk_hsv_destroy        (GtkObject      *object);
+static void gtk_hsv_map            (GtkWidget      *widget);
+static void gtk_hsv_unmap          (GtkWidget      *widget);
 static void gtk_hsv_realize        (GtkWidget      *widget);
 static void gtk_hsv_unrealize      (GtkWidget      *widget);
 static void gtk_hsv_size_request   (GtkWidget      *widget,
@@ -160,6 +162,8 @@ gtk_hsv_class_init (GtkHSVClass *class)
   
   object_class->destroy = gtk_hsv_destroy;
   
+  widget_class->map = gtk_hsv_map;
+  widget_class->unmap = gtk_hsv_unmap;                                      
   widget_class->realize = gtk_hsv_realize;
   widget_class->unrealize = gtk_hsv_unrealize;
   widget_class->size_request = gtk_hsv_size_request;
@@ -261,6 +265,39 @@ gtk_hsv_destroy (GtkObject *object)
 
 /* Default signal handlers */
 
+    
+/* Map handler for the HSV color selector */
+
+static void
+gtk_hsv_map (GtkWidget *widget)
+{
+  GtkHSV *hsv;
+  HSVPrivate *priv;
+
+  hsv = GTK_HSV (widget);
+  priv = hsv->priv;
+
+  GTK_WIDGET_CLASS (parent_class)->map (widget);
+
+  gdk_window_show (priv->window);
+}
+
+/* Unmap handler for the HSV color selector */
+
+static void
+gtk_hsv_unmap (GtkWidget *widget)
+{
+  GtkHSV *hsv;
+  HSVPrivate *priv;
+
+  hsv = GTK_HSV (widget);
+  priv = hsv->priv;
+
+  gdk_window_hide (priv->window);
+
+  GTK_WIDGET_CLASS (parent_class)->unmap (widget);
+}                                                                           
+                                      
 /* Realize handler for the HSV color selector */
 static void
 gtk_hsv_realize (GtkWidget *widget)